package com.awesome.spring.saga;

/**
 * AccountService
 *
 * @author alex wu
 * @date 2023/10/23
 */
public interface AccountService {

    boolean deductAccount(String userId, int money, boolean rollback);

    boolean compensateDeductAccount(String userId, int money);
}
